package Exo1;

import java.io.PrintWriter;
import java.util.Scanner;

public class Vehicule {
	private int identifiant;
	private String marque;
	private String modele;
	private int annee;
	private int kilometrage;
	private double prix;
	private int nbExemplaires;
	
	public Vehicule(int id, String marque, String modele, int annee, int km, double prix, int nbExemplaires){
		this.identifiant = id;
		this.marque = marque;
		this.modele = modele;
		this.annee = annee;
		this.kilometrage = km;
		this.prix = prix;
		this.nbExemplaires = nbExemplaires;
	}
	
	public void readData(Scanner in){
		
	}
	
	public void writeData(PrintWriter out){
		
	}
	
	//Méthode equals à faire
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(this.identifiant).append(", ")
				.append(this.marque).append(", ")
				.append(this.modele).append(", ")
				.append(this.annee).append(", ")
				.append(this.kilometrage).append(", ")
				.append(this.prix).append(", ")
				.append(this.nbExemplaires);
		return sb.toString();
	}
	

}
